home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / -screenplay- / utilities / kq3-fix / kq3-fix.doc next >
Text File  |  1997-12-12  |  10KB  |  227 lines

  1.  
  2.  
  3. K I N G ' S  Q U E S T  3  F I X
  4. """"""""""""""""""""""""""""""""
  5.  
  6. Included fixes
  7.  
  8. A patch to remove protection and fix the closing screen problem on OS2+.
  9. A better looking(?) mouse pointer for the game.
  10. Information about changing the game palette.
  11.  
  12.  
  13. Introduction
  14.  
  15. In their very first Amiga adventures made during the years 1986 and 1987
  16. Sierra used a somewhat nasty copy protection method. The game disk looked
  17. like a standard AmigaDos disk, but on it there was one file (whose name
  18. simply consisted of 8 spaces) with a deliberate read/write error. One
  19. couldn't execute the game unless the broken file was available. Although
  20. this was no problem when playing from the original disk, the unlucky user
  21. of more recent days will not be able to install the game on hard disk at
  22. all.
  23.  
  24. But the fix is here. This patch will modify the game executable and remove
  25. all references to the protected file thus allowing the user to copy all
  26. game files wherever he or she wants to. Two versions of King's Quest 3 are
  27. supported, one from the year 1986 and another from the year 1987. Also the
  28. irritating problem that the game is not able to close its screen upon
  29. quiting when using OS 2.04 or newer is corrected.
  30.  
  31. Note that Sierra recompiled their old titles in 1989. These versions
  32. should work and install nicely without any patches.
  33.  
  34. Note also that this fix is only for the original King's Quest 3. If you
  35. have problems with other old (original) Sierra games, you can always write
  36. to me at <timok@cs.tut.fi>.
  37.  
  38.  
  39. Which version of the game I do have?
  40.  
  41. There does exist at least three Amiga versions of the King's Quest 3. No
  42. matter which version is in use, the game itself looks like just the same.
  43. The only differences are in the internal structures of the game executable.
  44.  
  45. The first version is from the year 1986, and the disk has a gloomy
  46. looking white label with blue texts on it. The name of the disk is « KQ3:»
  47. (a space as the first character) and the length of the main executable
  48. (file named «Sierra») is 86280 bytes. Installation of this version on hard
  49. disk requires the included patch.
  50.  
  51. Second version from the year 1987 has a brown label with a color photo
  52. of the Sierra mountain on it. The name of the disk is «KQ3:» and the length
  53. of the main executable (file named «Sierra») is 86432 bytes. Installation
  54. of this version on hard disk requires the included patch as well.
  55.  
  56. Third version that was compiled in 1989 and does not need any patches to be
  57. installed. The on-disk copy protection does no longer exist and the closing
  58. screen problem is gone. The length of the main executable (file apparently
  59. named «KQ3») is 135016 bytes.
  60.  
  61.  
  62. How to proceed
  63.  
  64. As you may have already noticed, I haven't included a standard Amiga
  65. Installer script or actually any installation scripts at all. This is
  66. because it would be too easy to destroy your original game disk with
  67. incorrect use of a ready-to-use script (people do not usually read
  68. documents unless they have to, and so they might try this patch on their
  69. original disk). It is also because I'm lazy.
  70.  
  71. In the following, you have to type in various commands. Do not type
  72. the « and » characters around commands. They are just separating the
  73. commands and some indicated file names from the rest of this text.
  74.  
  75. In order to install the game the following steps need to be made:
  76.  
  77. · First, make sure the original disk is write-protected.
  78.  
  79. · Now, make a copy of the original disk. Don't worry if you tried to run
  80.   the game from the duplicated disk - it won't work yet. You can use any
  81.   copier you want. The only requirement is that the disk is processed
  82.   track-by-track basis. For example, Workbench DiskCopy, XCopy, SuperDuper
  83.   or even DMS will do fine.
  84.  
  85.   Actually you could also work with the original disk as well, but this is
  86.   strongly discouraged. If something goes wrong during the following steps,
  87.   you might cause a permanent damage on your original game disk! By using
  88.   the copy of the original disk, all you are able to destroy is just the
  89.   copy.
  90.  
  91. · Put the original disk in a safe place. It is not needed anymore.
  92.  
  93. · Insert the duplicated disk into any drive. Open a Shell (or CLI) and
  94.   change your current directory onto that drive (e.g. by typing «CD DF0:»
  95.   if you are using the internal drive DF0:)
  96.  
  97. · The game executable (file named «Sierra») has a strange set of file
  98.   protection flags. They need to be changed first so that file could be
  99.   modified. Type «Protect Sierra +rwed» to set the common protection flags.
  100.   You can also type «Protect Sierra -hspa» to remove the non-common flags.
  101.  
  102. · Now you should be aware of the directory where the files coming along
  103.   with this document are resided. Let's say they are in a directory called
  104.   «RAM:KQ3-fix/». In the likely case they are somewhere else, replace
  105.   references to this example directory with their actual location.
  106.  
  107.   If you do have the 1986 version of the game, type in the command:
  108.   «RAM:KQ3-fix/SPatch -oSierra -pRAM:KQ3-fix/Sierra1.pch Sierra».
  109.  
  110.   If you do have the 1987 version of the game, type in the command:
  111.   «RAM:KQ3-fix/SPatch -oSierra -pRAM:KQ3-fix/Sierra2.pch Sierra».
  112.  
  113.   This will make all necessary modifications to the game executable.
  114.   Note that the file is 4 bytes shorter after this operation.
  115.  
  116. · You can now delete the protected file (the one with the read/write error):
  117.   «Delete "        "» (there are 8 spaces in the name).
  118.  
  119. · If you would like to have a nicer-looking mouse pointer image in the game,
  120.   try this: «Copy RAM:KQ3-fix/pointer Data/». Otherwise ignore this step.
  121.   See the option chapter below for further information on the subject.
  122.  
  123. · That's it. You can now install the game wherever you want to by just
  124.   copying all the files from the disk to your favourite location. Note that
  125.   although the game originally won't run unless a volume called « KQ3:»
  126.   (1986 version) or «KQ3:» (1987 version) is present, such restriction no
  127.   longer exist. Wish you relabel the game disk you are free to do so.
  128.  
  129.   Assuming you have created a directory for the game called «SYS:games/KQ3/»
  130.   you can copy the files for example by typing «Copy "" SYS:games/KQ3/ ALL».
  131.  
  132.  
  133. Options
  134.  
  135. There are two things in here: palette and the mouse pointer of the game.
  136. First, let's talk about the pointer. In my opinion the mouse pointer of
  137. the first generation of Sierra adventures looks pretty ugly. The image
  138. of the pointer is stored in a file called «pointer» located in «Data»
  139. subdirectory in respect to the main directory (installed games)  or root
  140. directory of the disk (non-installed games). This file is 80 bytes long
  141. and contains the binary representation of the pointer sprite in hexadecimal
  142. format. The user of a hex editor can easily figure out how this file is
  143. organized by testing different patterns in here (the file has nothing extra
  144. in it, just the raw pointer data). The pointer included in this software
  145. archive is something that suits my taste, but nothing more. Feel free to
  146. create even better looking pointer, if you think that my version is an
  147. ugly one too!
  148.  
  149. Another thing to discuss are the colors used in old Sierra adventures.
  150. Actually, in those versions of the King's Quest 3 that require patching
  151. the colors are quite ok, but in the version released in 1989 they are
  152. not. For instance the skin color is just too reddish. To make things
  153. complete, I'll also describe how colors can be altered. To begin with,
  154. here are the palette informations from various Sierra 16-color adventures.
  155.  
  156. The color scheme used in 1986 and 1987 versions of King's Quest 3:
  157.  
  158.   000, 00F, 080, 0DB, C00, B7D, 850, BBB,
  159.   777, 0BF, 0E0, 0FD, F98, F70, EE0, FFF.
  160.  
  161. The palette used in 1989 King's Quest 3:
  162.  
  163.   000, 00B, 0B0, 0BB, B00, B0B, C70, BBB,
  164.   777, 00F, 0F0, 0FF, F00, F0F, FF0, FFF.
  165.  
  166. Finally, a palette from more modern Sierra games (this one is taken
  167. from King's Quest 4):
  168.  
  169.   000, 008, 080, 088, 800, 808, 830, 888,
  170.   555, 44F, 0F0, 0FF, F44, F0F, FF0, FFF.
  171.  
  172. All the above information was taken by using the «Palette» tool included
  173. in the good old OS1.3. The program opens up a palette requester on the
  174. frontmost screen, even if this happens to be a screen owned by a Sierra
  175. game. To make that work, you need to have e.g. the icon for Palette
  176. available in the top portion of the Workbench. Now, when the game is
  177. running, pull its screen downwards enough to make the Palette icon
  178. visible. Then double-click the icon to start the Palette program. It
  179. should show up on the game screen. This allows you to play with the
  180. colors and even use the altered palette as long as the game is running.
  181. But the palette information still needs to be saved in the game
  182. executable.
  183.  
  184. Again, a hex editor comes handy. The file to be edited is the main
  185. executable, the same file that has already been patched. In this point
  186. it might be a good idea to tell how the above information is present in
  187. the file.
  188.  
  189. All color components are stored as a separate words in successive
  190. locations. For instance the colors of the 1986 and 1987 versions of the
  191. game form the following hexadecimal string (the spaces and commas are
  192. only used to make this readable, in reality they naturally don't exist):
  193.  
  194.   0000 0000 0000, 0000 0000 000F, 0000 0008 0000, 0000 000D 000B,
  195.   000C 0000 0000, 000B 0007 000D, 0008 0005 0000, 000B 000B 000B,
  196.   0007 0007 0007, 0000 000B 000F, 0000 000E 0000, 0000 000F 000D,
  197.   000F 0009 0008, 000F 0007 0000, 000E 000E 0000, 000F 000F 000F.
  198.  
  199. To change this information, one first needs to find out the exact
  200. position of these bytes. Some byte combinations (especially those
  201. with all zeros) may exist also somewhere else in the file, therefore
  202. it is suggested to search for the palette by using the bytes of light
  203. grey color (000B000B000B) as a search key because such bytes are
  204. unlikely to occur anywhere else.
  205.  
  206.  
  207. Disclaimer
  208.  
  209. You are using this software at your own risk! Under no circumstances will the
  210. author be liable for any direct on indirect damage or data loss resulting
  211. from the use or misuse of these files or the documents.
  212.  
  213. Using the patch for anything but your personal needs (to spread unprotected
  214. copies of the game, for instance) is illegal and strongly prohibited.
  215.  
  216.  
  217. Author
  218.  
  219. Timo Kaikumaa
  220. Atanväylä 14 C 12
  221. 33580 Tampere
  222. FINLAND
  223.  
  224. E-mail:    timok@cs.tut.fi
  225. Home page: http://www.cs.tut.fi/~timok (currently in Finnish only)
  226.  
  227.